<%@tag import="com.immunology.bean.SyndromeBean"%>
<%@ tag language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<script type="text/javascript" src="js/script.js"></script>
<div>
	<jsp:useBean id="syndromeBean" scope="application"
		class="com.immunology.bean.SyndromeBean" />

	<h2>Додати скаргу:</h2>
	<form action="AddComplaintServlet" method="post">

		Синдром:
		<select id="syndrome" name="syndrome" 
				onChange="loadComplaintTypeList()">
			<option value="0">
				---Виберіть синдром---
			</option>
			<c:forEach items="${syndromeBean.syndromeList }" var="syndrome">
				<option value="<c:out value="${syndrome.id }" />">
					<c:out value="${syndrome.name }" />
				</option>
			</c:forEach>
		</select>
		
		<br>
		Тип скарги: 
		<select id="complaintType" name="complaintType"></select>
		
		<br>
		Назва скарги:
		<input type="text" id="complaint" name="complaint" value="">
		<input type="submit" value="Додати"> <input type="reset" value="Очистити">
	</form>

</div>
 
